﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="courseWork.Register" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="Static/css/myRegister.css" rel="stylesheet" />
    <link href="Static/css/bootstrap.min.css" rel="stylesheet" />
    <title></title>
</head>
<body>
    <div id="middle" class="shadow-lg p-3 mb-5 bg-white rounded">
        <h1 class="text-secondary">注册</h1>
        <div class="inMiddle">
            <form runat="server" method="post">
                <div class="form-group">
                    <label for="userName">昵称</label>
                    <asp:TextBox ID="userName" runat="server" CssClass="form-control"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="userNameValidator" runat="server" ErrorMessage="请输入你的昵称" CssClass="form-text text-muted" ControlToValidate="userName">

                    </asp:RequiredFieldValidator>
                </div>

                <div class="form-group">
                    <label for="userAccount">账号</label>
                    <asp:TextBox ID="userAccount" runat="server" CssClass="form-control"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="userAccountValidator" runat="server" ErrorMessage="请输入你的账号" CssClass="form-text text-muted" ControlToValidate="userAccount">

                    </asp:RequiredFieldValidator>
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <asp:TextBox ID="password" runat="server" CssClass="form-control"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="passwordValidator" runat="server" ErrorMessage="请输入你的密码" CssClass="form-text text-muted" ControlToValidate="password">

                    </asp:RequiredFieldValidator>
                </div>
                <div class="form-group">
                    <label for="rePassword">确认密码</label>
                    <asp:TextBox ID="rePassword" runat="server" CssClass="form-control"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rePasswordValidator" runat="server" ErrorMessage="请再次输入你的密码" CssClass="form-text text-muted" ControlToValidate="rePassword">

                    </asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="rePasswordCompareValidator1" runat="server" ErrorMessage="两次输入的密码不一致" ControlToValidate="rePassword" CssClass="form-text text-muted" ControlToCompare="password"></asp:CompareValidator>
                </div>
                <asp:Button ID="MyRegister" runat="server" Text="register" class="btn btn-primary btn-block" OnClick="Register_Click" />
                <a href="Login.aspx"><small id="msg" class="form-text text-muted">去登入</small></a>
            </form>
        </div>
    </div>
</body>
</html>
